package com.c5p1ng.route.context;

/**
 * 全局上下文信息
 *
 * @author csp
 */
public class GlobalContext {
    /**
     * 全局流水号
     */
    private String traceId;

    /**
     * 分组名称
     */
    private String group;

    /**
     * 客户端ip
     */
    private String clientIp;

    public GlobalContext() {
    }

    public String getTraceId() {
        return this.traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public String getGroup() {
        return this.group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getClientIp() {
        return this.clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    @Override
    public String toString() {
        return "GlobalContext{" +
                "traceId='" + traceId + '\'' +
                ", group='" + group + '\'' +
                ", clientIp='" + clientIp + '\'' +
                '}';
    }
}
